package com.zhongge.model.entity;

import java.util.Date;

/**
 * @ClassName Category
 * @Description TODO 文章分类表
 * @Author zhongge
 * @Version 1.0
 */
public class Category {
    private Integer id;//文章分类编号
    private String name;//分类名称
    private String description;//分类描述
    private Integer userId;//用户ID
    private Date createdTime;//创建时间
    private Date updatedTime;//更新时间

    // 构造方法
    public Category() {}

    public Category(String name, Integer userId) {
        this.name = name;
        this.userId = userId;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
